package com.serialcommunication.model;

import org.apache.soap.encoding.Hex;

import com.serialcommunication.interfaces.IAction;

/**
 * Dynamic Actions (Payload is at least two bits long)
 * @author Alex
 *
 */
public class DynamicAction implements IAction {
	
	/**
	 * The Full name as found in doku
	 */
	private String name;

	/**
	 * String as displayed in the GUI
	 */
	private String title;

	/**
	 * A unique HEX value representing this Action/Command
	 */
	private String command;
	
	private int numberOfUsedBits;
	

	public DynamicAction(String pName, String pTitle, String pCommand, int pNumberOfUsedBits) {
		this.name = pName;
		this.title = pTitle;
		this.command = pCommand;
		numberOfUsedBits = pNumberOfUsedBits;
	}

	public String getTitle() {
		return title;
	}

	public String getCommand() {
		return command;
	}

	public String getName() {
		return name;
	}

	public int getNumberOfUsedBits() {
		return numberOfUsedBits;
	}

	@Override
	public int getBitNumberOrNumberOfUsedBits() {
		// TODO Auto-generated method stub
		return 0;
	}
}
